//
//  MABabyRelationshipView.m
//  meiang_edu
//
//  Created by hfcb on 2018/9/11.
//  Copyright © 2018年 com.meiang.meiang_edu. All rights reserved.
//

#import "MABabyRelationshipView.h"

@interface MABabyRelationshipView ()
/** cancelBlock */
@property(nonatomic,copy) RelationshipViewBlock cancelBlock;
/** okBlock */
@property(nonatomic,copy) RelationshipViewBlock okBlock;
@property (weak, nonatomic) IBOutlet UIButton *cancelBtn;
@property (weak, nonatomic) IBOutlet UIButton *okBtn;

@end

@implementation MABabyRelationshipView

- (void)awakeFromNib {
    [super awakeFromNib];
    self.autoresizingMask = UIViewAutoresizingNone;
}

- (instancetype)init
{
    self = [super init];
    if (self) {
        self = [[[NSBundle mainBundle] loadNibNamed:NSStringFromClass([self class]) owner:nil options:nil] lastObject];
    }
    return self;
}

+ (instancetype)babyRelationshipView{
    MABabyRelationshipView *view = [[MABabyRelationshipView alloc] init];
    view.height = 150;
    view.width = SCREEN_WIDTH - 8;
    
    return view;
}

- (void)cancelBtnAddTarget:(UIViewController *)target action:(SEL)action {
    [self.cancelBtn addTarget:target action:action forControlEvents:UIControlEventTouchUpInside];
}
- (void)okBtnAddTarget:(UIViewController *)target action:(SEL)action {
    [self.okBtn addTarget:target action:action forControlEvents:UIControlEventTouchUpInside];
}

@end
